package com.ruoyi.yuwen.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收货地址管理对象 t_address
 * 
 * @author ruoyi
 * @date 2023-02-27
 */
@Data
public class Address extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 收货人姓名 */
    @Excel(name = "收货人姓名")
    private String name;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 是否默认（0：不是默认，1：是默认） */
    @Excel(name = "是否默认（0：不是默认，1：是默认）")
    private Integer isDefault;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 省 */
    @Excel(name = "市")
    private String city;

    /** 省 */
    @Excel(name = "区")
    private String county;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("address", getAddress())
            .append("userId", getUserId())
            .append("isDefault", getIsDefault())
            .append("province", getProvince())
            .append("city", getCity())
            .append("county", getCounty())
            .toString();
    }
}
